package top.lingkang.finalgateway.admin.constants;

import lombok.Getter;

/**
 * @author lingkang
 * Created by 2024/4/28
 */
@Getter
public enum LogType {
    user_login("user","用户登录"),
    user_logout("user","用户注销"),

    config_update_success("config","配置更新成功"),

    config_update_fail("config","配置更新失败"),

    app_stop("app","应用停止"),

    app_start("app","应用启动"),

    service_restart("service","服务重启"),
    service_restartAll("service","服务重启全部"),
    service_restartPort("service","服务重启端口"),

    ssl_add("ssl","SSL证书添加"),
    ssl_update("ssl","SSL证书更新"),
    ssl_delete("ssl","SSL证书删除"),

    iplist_add("iplist","黑白名单添加"),
    iplist_update("iplist","黑白名单更新"),
    iplist_delete("iplist","黑白名单删除"),

    terminal_conn_fail("terminal","终端连接失败"),
    terminal_conn_success("terminal","终端连接成功"),
    ;


    private String type;
    private String name;

    LogType(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public LogType setType(String type) {
        this.type = type;
        return this;
    }

    public LogType setName(String name) {
        this.name = name;
        return this;
    }
}
